package com.xcity.pomelo.response;

import com.xcity.game.buildv2.BuildV2;
import com.xcity.game.buildv2.BuildV2.State;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class BuildCreateV2Response extends Response {

	private int id;
	private State state;
	
	public BuildCreateV2Response() {
		super(CODE_ERROR);
	}
	
	public BuildCreateV2Response(int serial, BuildV2 building) {
		super(serial);
		this.id = building.getId();
		this.state = building.getState();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}
	
}
